#! coding:utf8
# Create your views here.
from django.shortcuts import render_to_response
from django.template import Template
from django.http import HttpResponse
import datetime

def index(request):
    now = datetime.datetime.now()
    greeting = u'说点什么:)'
    return render_to_response('index.html', {'current_date': now, 'greeting': greeting, })


def django_ajax(request):
    html = '<html><body>It is ajax.</body></html>'
    return HttpResponse(html)